# import urllib.request
# url="http://www.baidu.com"
# response=urllib.request.urlopen(url)
# content=response.read().decode("utf-8");
# print(content)

import urllib.request
url="http://www.baidu.com"
response=urllib.request.urlopen(url)
# content=response.read();
# content=response.readlines()
# content=response.getcode()
content=response.getheaders()
print(content) 